import 'package:flutter/material.dart';
import 'package:flutter_first/navigation_tab.dart';

import 'appbar.dart';
import 'appbar_tab.dart';
import 'dialog/dialog.dart';
import 'dimiss.dart';
import 'form.dart';
import 'gesture.dart';
import 'grid.dart';
import 'grid_ex.dart';
import 'home.dart';
import 'layout.dart';
import 'navigation.dart';
import 'widget/raisedbutton.dart';
import 'widget/flatbutton.dart';
import 'widget/align.dart';
import 'widget/clip.dart';
import 'widget/constrained.dart';
import 'widget/container.dart';
import 'widget/custom_scroll.dart';
import 'widget/drawer.dart';
import 'widget/horizontal.dart';
import 'widget/image.dart';
import 'widget/list.dart';
import 'widget/list_long.dart';
import 'widget/progress.dart';
import 'widget/row.dart';
import 'widget/stack.dart';
import 'widget/switch_checkbox.dart';
import 'widget/text.dart';
import 'widget/textfield.dart';
import 'widget/theme.dart';
import 'widget/transform.dart';
import 'widget/wrap.dart';

const String homePage = 'main';
const String newText = 'new_text';
const String newImage = 'new_image';
const String newList = 'new_list';
const String newLong = 'new_long';
const String newContainer = 'new_container';
const String newHorizontal = 'new_horizontal';
const String newRow = 'new_row';
const String newGrid = 'new_grid';
const String newGridEx = 'new_grid_ex';
const String newAppbar = 'new_appbar';
const String newTab = 'new_tab';
const String newLayout = 'new_layout';
const String newStack = 'new_stack';
const String newRaised = 'new_raised';
const String newFlat = 'new_flat';
const String newGest = 'new_gest';
const String newDismiss = 'new_dismiss';
const String newSwBox = 'new_sw_box';
const String newTextfield = 'new_textfield';
const String newForm = 'new_form';
const String newTheme = 'new_theme';
const String newNavigation = 'new_navigation';
const String newNavigationTab = 'new_navigation_tab';
const String newDrawer = 'new_drawer';
const String newProgress = 'new_progress';
const String newWrap = 'new_wrap';
const String newAglin = 'new_aglin';
const String newConstrain = 'new_constrain';
const String newTransform = 'new_transform';
const String newClip = 'new_clip';
const String newScrollview = 'new_scrollview';
const String newDialog = 'new_dialog';

Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
  homePage: (context) => HomePage(title: 'Flutter First Demo Home Page'),
  newText: (context) => TextDemo(),
  newImage: (context) => ImageDemo(),
  newList: (context) => ListDemo(),
  newLong: (context) => ListLongDemo(),
  newContainer: (context) => ContainerDemo(),
  newHorizontal: (context) => HorizontalDemo(),
  newRow: (context) => RowDemo(),
  newGrid: (context) => GridDemo(),
  newGridEx: (context) => GridExDemo(),
  newAppbar: (context) => AppbarDemo(),
  newTab: (context) => TabDemo(),
  newLayout: (context) => LayoutDemo(),
  newStack: (context) => StackDemo(),
  newRaised: (context) => RaisedDemo(),
  newFlat: (context) => FlatDemo(),
  newGest: (context) => GestureDemo(),
  newDismiss: (context) => DismissDemo(),
  newSwBox: (context) => SwitchAndCheckBoxDemo(),
  newTextfield: (context) => TextFieldDemo(),
  newForm: (context) => FormDemo(),
  newTheme: (context) => ThemeColorDemo(),
  newNavigation: (context) => NavigationDemo(),
  newNavigationTab: (context) => NavigationTabDemo(),
  newDrawer: (context) => DrawerDemo(),
  newProgress: (context) => ProgressDemo(),
  newWrap: (context) => WrapDemo(),
  newAglin: (context) => AlignDemo(),
  newConstrain: (context) => ConstrainDemo(),
  newTransform: (context) => TransformDemo(),
  newClip: (context) => ClipDemo(),
  newScrollview: (context) => CustomScrollViewDemo(),
  newDialog: (context) => DialogDemo(),
};
